{"version":3,"sources":["recorder.js"],"names":["window","BX","supportedTypes","audio/mp3","states","idle","recording","paused","Recorder","stream","options","MediaStream","type","isPlainObject","this","isTypeSupported","state","audioContext","mediaStreamNode","scriptNode","analyserNode","worker","Worker","postMessage","action","onmessage","e","data","onCustomEvent","result","bind","isSupported","prototype","start","self","AudioContext","webkitAudioContext","createScriptProcessor","connect","destination","createMediaStreamSource","onaudioprocess","event","input","inputBuffer","getChannelData","attachAnalyser","params","createAnalyser","fftSize","minDecibels","maxDecibels","stop","disconnect","close","pause","resume","replaceStream","getState","dispose"],"mappings":"CAKA,SAAUA,GAET,UAAWC,GAAW,WAAM,YAAa,OAEzC,IAAIC,GACHC,YAAa,MAGd,IAAIC,GACHC,KAAM,EACNC,UAAW,EACXC,OAAQ,GAGTN,GAAGO,SAAW,SAASC,EAAQC,GAE9B,IAAID,aAAkBT,EAAOW,YAC5B,KAAM,qCAEP,IAAIV,GAAGW,KAAKC,cAAcH,GACzBA,KAEDI,KAAKL,OAASA,EACdK,KAAKJ,SACJE,KAAOF,EAAQE,MAAQX,GAAGO,SAASO,gBAAgBL,EAAQE,MAAQF,EAAQE,KAAO,aAGnFE,KAAKE,MAAQZ,EAAOC,KAEpBS,KAAKG,aAAe,KACpBH,KAAKI,gBAAkB,KACvBJ,KAAKK,WAAa,KAClBL,KAAKM,aAAe,KAEpBN,KAAKO,OAAS,IAAIrB,EAAOsB,OAAO,uCAChCR,KAAKO,OAAOE,aAAaC,OAAQ,OAAQZ,KAAME,KAAKJ,QAAQE,OAE5DE,KAAKO,OAAOI,UAAY,SAASC,GAEhC,OAAOA,EAAEC,KAAKH,QAEb,IAAK,SACJvB,GAAG2B,cAAcd,KAAM,QAASY,EAAEC,KAAKE,SACvC,QAEDC,KAAKhB,OAGRb,GAAGO,SAASuB,YAAc,WAEzB,cACQ/B,EAAW,OAAM,oBACdA,EAAa,SAAM,oBACnBA,EAAU,MAAM,oBAChBA,EAAkB,cAAM,qBACvBA,EAAmB,eAAM,oBA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